x86/cpuid: Advertise no-lmsl unilaterally to hvm guests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Apr 2021 13:10:25 +0000 (14:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Apr 2021 14:11:55 +0000 (15:11 +0100)
commit23ccf530431561268b0190f0f1b740b618771b7b
treef1d5efc2c429752bc47f37ab3f851f92a4539985
parent3ccd796952deda179cb148606f7f7b3d6bea74b7
x86/cpuid: Advertise no-lmsl unilaterally to hvm guests

While part of the original AMD64 spec, Long Mode Segment Limit was a feature
not picked up by Intel, and therefore didn't see much adoption in software.
AMD have finally dropped the feature from hardware, and allocated a CPUID bit
to indicate its absence.

Xen has never supported the feature for guests, even when running on capable
hardware, so advertise the feature's absence unilaterally.

There is nothing specifically wrong with exposing this bit to PV guests, but
the PV ABI doesn't include a working concept of MSR_EFER in the first place,
so exposing it to PV guests would be out-of-place.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/libs/light/libxl_cpuid.c
tools/misc/xen-cpuid.c
xen/arch/x86/cpuid.c
xen/include/public/arch-x86/cpufeatureset.h
xen/tools/gen-cpuid.py